<?php
/**
 * QQAS - share your knowledge to the world!
 *
 * @author		xiaochong0302 <xiaochong0302@gmail.com>
 * @copyright	Copyright (c) 2011, Koogua Studio.
 * @license		http://www.qqas.org/user_guide/license.html
 * @link		http://www.qqas.org
 * @since		Version 1.0
 * @filesource
 */


class MedalModel extends Model
{

	//缓存奖章
	public function cacheMedals()
	{
	    $results = $medals = array();
    	$results = $this->select();

    	if (!empty($results))
    	{
    		foreach ($results as $value)
    		{
    			$medals[$value['medal_id']] = $value;
    		}
    		F('cache_medals', $medals);
    	}
	}

}

/* End of file MedalModel.class.php */
/* Location: ./App/Lib/Model/MedalModel.class.php */
